<template>
    <view class="message-header">
        <view class="header-title">消息</view>
        <view class="header-add">
            <han-icon name="search" size="38" class="icon-search" />
            <han-icon name="add" size="38" class="icon-add" />
        </view>
    </view>
</template>

<script setup></script>

<style lang="scss">
.message-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20rpx;
    height: $han-nav-bar-height;
    border-bottom: 1rpx solid $han-global-border-color;
    position: relative;

    .header-title {
        font-size: $han-font-size-lg;
        font-weight: bold;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-add {
        padding: 0 20rpx;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 20%;

        .icon-search {
            margin-right: 20rpx;
        }
    }
}
</style>
